package cn.xiuxius.embedded.toolwindow.projecttool;

import cn.xiuxius.embedded.toolwindow.model.CommandOption;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.function.Consumer;

@Accessors(chain = true)
@Builder
@Getter
@Setter
public class ProjectCommandItem {
    private OptionUIType type;
    private String id;
    private String displayName;
    private CommandOption option;
    private boolean refreshButton;
    private Consumer<ProjectCommandItem> onClick;

    public ProjectCommandItem(OptionUIType type, String id, String displayName, CommandOption option, boolean refreshButton, Consumer<ProjectCommandItem> onClick) {
        this.type = type;
        this.id = id;
        this.displayName = displayName;
        this.option = option;
        this.refreshButton = refreshButton;
        this.onClick = onClick;
    }

}
